package com.five.monkey.feign.es.service;

import com.five.monkey.vo.PageVo;
import com.five.monkey.vo.UserVo;
import org.springframework.data.domain.Sort;

import java.util.List;

/**
 * @author 狻猊
 * @date 2021-11-23 10:40:08
 */
public interface UserElasticsearchService {

    UserVo findById(Long id);

    UserVo save(UserVo userVo);

    boolean deleteById(Long id);

    List<UserVo> findAll();

    PageVo<UserVo> findByStatus(Integer status, int page, int size, Sort sort);

    List<UserVo> findByStatus(Integer status, Sort sort);
}
